/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utn.tsb.tej.world_logic;

import java.io.Serializable;

/**
 *
 * @author Administrador
 */
public abstract class Objective implements Comparable,Serializable {

    private int number;

    public abstract boolean isAccomplished();

    public Objective(int number) {
        this.number = number;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public int compareTo(Object o) {
        Objective ob = (Objective) o;
        int dif = this.number - ob.getNumber();
        return dif;
    }

}
